package com.nuanshui.heatedloan.userinfo.service;

import com.nuanshui.heatedloan.baseservice.service.CommonServiceImpl;
import com.nuanshui.framework.consts.TransactionManagerType;
import com.nuanshui.heatedloan.userinfo.dal.mapper.UsersMapper;
import com.nuanshui.heatedloan.userinfo.facade.UserWeixinService;
import com.nuanshui.heatedloan.userinfo.model.UserWeixinMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true,value=TransactionManagerType.USER_INFO_TRANSACTION_MANAGER)
@Service
public class UserWeixinServiceImpl extends CommonServiceImpl implements UserWeixinService {

	@Autowired
	private UsersMapper usersMapper;
	
	@Override
	@Transactional(value=TransactionManagerType.USER_INFO_TRANSACTION_MANAGER)
	public void pushMsgSave(UserWeixinMsg msg) {
		usersMapper.saveUserWeixinMsg(msg);
	}

}
